All Questions
3,756 questions
0votes
0answers
73views
how can i enable the next button if one or more checked boxes are selected and disable if none are selected in ServiceNow
i am working on a ServiceNow custom widget in which i am getting all the data from backed in an array. i want that if user doesn't checked any checked boxes the next button should be disabled. if user ...
1vote
0answers
29views
Show more / show less in angular
<ng-container *ngFor="let item1 of errorItem.controls.errortype.value"> <ng-container *ngFor="let item of notesLog.slice(0,showmoreless ? undefined : 3)"> ...
0votes
0answers
98views
Find duplicate value in array of objects [duplicate]
I have the following array: let items = [ {"Item":"1","OfficeID":"82388","Title":"Bamboozled"}, {"Item&...
0votes
2answers
56views
how can I update an array which has a different type and secondary array has different type in typescript
let user: { id: number, name: string }[] = [ { "id": 0, "name": "ABC" }, { "id": 1, "name": "XYZ" } ]; let dataList: { id: number, ...
0votes
2answers
156views
Angular, Render 3000+ Reactive Forms without crassing
I'm facing an issue with a large array of products within an 'order' object in my frontend application. Typically, this array holds anywhere between 500 to 3000 products. Please don't ask why it's so ...
0votes
4answers
77views
How to filter specific key values from array based on the other key
I am having an array with name of the product and its storage let array = [{name: "samsung A", storage: "128GB"}, {name: "samsung B", storage: "128GB"}, {name: &...
2votes
3answers
231views
How to filter based on the user entry from array of objects
I have an array of objects let array = [{name: "singpore"}, {name: "French Polynesia"}, {name: "poland"}, {name: "portugal"}] I am trying to implement with ...
1vote
0answers
23views
Update the isolated scope of all instanced directives
My current situation right now is rather tricky and I've been bashing my head for two days straight trying to fix this problem. I have accordion sections in which there is a space reserved to add/...
0votes
1answer
116views
How to Show error if value of an array is empty
Array = { 0 : { NAME: 'A' , PET :'DOG' , AGE : 'NINE' }, 1 : { NAME: 'B' , PET :'CAT' , AGE : 'TEN' }, 2 : { NAME: 'C' , PET :'TURTLE' , AGE : '' } } Html : <option ng-repeat='data in ...
0votes
1answer
44views
How can I wait for a result, and then continue with the interval?
I have an application that all it does is consult an API and retrieve a list of objects. Each object is simple, it has a title, a description, and another array containing IDs. These IDs allow me to ...
1vote
0answers
43views
How to upload multiple files with extension checking in yii2 using JavaScript
I am using AngularJS to upload an Array of formData to PHP // sample code in ng-component.js const fd = new FormData(); for (let i=0; i < $scope.brochureList.length; i++) { console.log($scope....
0votes
2answers
43views
Property 'i' does not exist on type 'AppComponent'
i have attached my code here; i have attached my code here i was trying to create delete button to delete array object using ngFor directive
0votes
1answer
108views
How to check if object from response array exists in another array? (angularjs)
I have a custom multi-select, when I select some options from it I need to activate a second multi-select, based on the response I receive from the options of first multi-select. So I have a method ...
1vote
1answer
127views
console.log string inside array object with angularjs
I want to console.log or target the string of an object inside array with angularjs but it doesn't work. Please help me I'm still new on angularjs. Here is what I'm trying to do. <!DOCTYPE html> ...
0votes
2answers
844views
How to push Angular model to array while changing values using index?
I have an Angular Model and I am trying to push it to an array to create repeater fields. The array is then iterated to create html fields in a component. However, while pushing to the array, an ...